//
//  Location.m
//  05-HomeWork
//
//  Created by dllo on 16/7/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Location.h"

@implementation Location
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"proName"]) {
        self.name = value;
    }
    if ([key isEqualToString:@"aNumber"]) {
        self.number = value;
    }
}

- (void)setCityArray:(NSMutableArray *)cityArray {

    _cityArray = [NSMutableArray array];
    NSMutableArray *array = [NSMutableArray array];
    for (NSMutableDictionary *dic in cityArray) {
        Lcity *lcity = [[Lcity alloc] init];
        [lcity setValuesForKeysWithDictionary:dic];
        [array addObject:lcity];
    }
    _cityArray = [NSMutableArray arrayWithArray:array];
}
@end
